/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.wskj.workbench.vo.app;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author LGH
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class AppShopCartItemVo implements Serializable {
    private static final long serialVersionUID = -8284981156242930909L;

    @ApiModelProperty(value = "购物车ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long cartId;

    @ApiModelProperty(value = "店铺ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long shopId;

    @ApiModelProperty(value = "店铺名称")
    private String shopName;

    @ApiModelProperty(value = "店铺LOGO")
    private String shopLogo;

    @ApiModelProperty(value = "商品ID")
    private Long prodId;

    @ApiModelProperty(value = "商品名称")
    private String prodName;

    @ApiModelProperty(value = "单品ID")
    private Long skuId;

    @ApiModelProperty(value = "规格名称")
    private String skuName;

    @ApiModelProperty(value = "商品原价")
    private BigDecimal oriPrice = BigDecimal.ZERO;

    @ApiModelProperty(value = "商品售价")
    private BigDecimal price;

    @ApiModelProperty(value = "商品数量")
    private Integer prodCount;

    @ApiModelProperty(value = "单品总金额", required = true)
    private BigDecimal prodTotalAmount = BigDecimal.ZERO;

    @ApiModelProperty(value = "单品图片")
    private String pic;

    @ApiModelProperty(value = "商品实际金额 = 商品总金额 - 分摊的优惠金额")
    private BigDecimal actualTotal = BigDecimal.ZERO;

}
